package com.gg.user.gguser.service;

import com.gg.vo.return_format;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface GgUserRoleService {

    /**
     * 修改用户内外部
     */
    Object updateUserRole(HttpServletResponse response, HttpServletRequest request, String upUserId, Integer grade) throws Exception;

    /**
     * 用户之间的绑定 外部公司和员工，内部的客服和客户
     *
     * upUserId 公司账号的id也就是公司超级管理员
     * npUserId 需要绑定的用户
     */
    Object bindingUser(HttpServletResponse response, HttpServletRequest request, String upUserId, String npUserId) throws Exception;

    /**
     * 增加 角色
     */
    Object addRole(HttpServletResponse response, HttpServletRequest request, String name,String grade) throws Exception;

    /**
     * 增加用户角色
     */
    Object addUserRole(HttpServletResponse response, HttpServletRequest request, String userid,Integer roleid) throws Exception;

    /**
     * 增加角色组
     */
    Object groduUserGropu(HttpServletResponse response, HttpServletRequest request, String name,String grade) throws Exception;

    /**
     * 增加角色和用户之间关系
     */
    Object groduUserRoleGropu(HttpServletResponse response, HttpServletRequest request, String userid, Integer roleidGroup) throws Exception;

    /**
     * 增加用户权限都有那些权限
     */
    Object addUserRoleAll(HttpServletResponse response, HttpServletRequest request, String userid,String menu, Integer role, Integer type) throws Exception;
}
